package com.wbcs.system.dataimport.filetype;

import java.io.File;
import java.util.List;

import com.wbcs.config.resource.dataimport.configbean.AbsDataImportConfigBean;

public abstract class AbsFileTypeProcessor
{
    protected AbsDataImportConfigBean configBean;

    protected int startrecordindex;

    protected int recordcount;

    public AbsFileTypeProcessor(AbsDataImportConfigBean configBean)
    {
        this.configBean=configBean;
    }

    public AbsDataImportConfigBean getConfigBean()
    {
        return configBean;
    }

    public int getStartrecordindex()
    {
        return startrecordindex;
    }

    public int getRecordcount()
    {
        return recordcount;
    }

    public abstract void init(File datafile);

    public abstract List<String> getLstColnameData();
    
    public abstract List getRowData(int rowidx);

    public abstract boolean isEmpty();

    public abstract void destroy();
}
